package com.vasthu.gui;

public class VstGuiManager {
    private static VstGuiManager uniqInstance;
    
    private boolean isBillLoaded;
    private VstMainWindow mainWindow;

    private VstGuiManager() {
        isBillLoaded = false;
        mainWindow = null;
    }

    public static synchronized VstGuiManager get() {
        if (uniqInstance == null) {
            uniqInstance = new VstGuiManager();
        }
        return uniqInstance;
    }
    
    public void setBillViewLoaded(boolean loaded)
    {
        isBillLoaded = loaded;
    }
    
    public boolean isBillViewLoaded()
    {
        return isBillLoaded;
    }
    
    public void setMainWindow(VstMainWindow mw)
    {
        mainWindow = mw;
    }
    
    public VstMainWindow getMainWindow()
    {
        return mainWindow;
    }

}